# 导入正则
import re

result = re.match(r"\d+", "123456")
print("匹配是否是数字", result, result.group(0))

result = re.match(r"\d+", "abcde")
print(result)
if result is not None:
    print(result.group())
elif result is None:
    print("None")
else:
    print("None")
